package entity;

import module.distribute.DistributeEnty;

import java.io.Serializable;

/**
 * @fileName: NeedFetchUrl
 * @author: Han
 * @date: 2018/6/11 9:27
 * @dscription: TODO
 */
public class NeedFetchUrl implements DistributeEnty,Serializable {

    private static final long SERIAL_VERSION_UID = 1L;

    private long id;
    private long hostId;
    private String url;
    /**
     * 标题
     */
    private String title;
    /**
     * 原文时间
     */
    private String time;
    /**
     * 正文内容
     */
    private String content;
    /**
     * 来源
     */
    private String source;
    /**
     * 摘要
     */
    private String digest;
    /**
     * 类型(新闻、论坛、微博等)
     */
    private int type;

    public NeedFetchUrl(long id, String url, String title,  String content, String source,String time,
                        String digest,int type){
        this.id = id;
        this.url = url;
        this.title = title;
        this.content = content;
        this.source = source;
        this.digest = digest;
        this.type = type;
        this.time = time;
    }

    @Override
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getDigest() {
        return digest;
    }

    public void setDigest(String digest) {
        this.digest = digest;
    }

    @Override
    public long getHostId() {
        return hostId;
    }

    public void setHostId(long hostId) {
        this.hostId = hostId;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
}
